<div class="row">
    <div class="span6">
        <div class="panel inner">
            <div class="page-header">
                <h4>{{previewTitle}}</h4>
            </div>
            <div id="wmd-preview" class="well wmd-preview" ng-hide="markdownHelp">
            </div>
            <div class="well wmd-preview" ng-show="markdownHelp" ng-parse-markdown="markdownHelp">
            </div>
        </div>
    </div>
    <div class="span6">
        <div class="panel inner">
            <div class="page-header">
                <h4>添加/编辑文章</h4>
            </div>
            <form name="addArticle">
                <label>
                    文章标题
                </label>
                <span class="text-warning">
                [必填，{{global.TitleMinLen}} 到 {{global.TitleMaxLen}} 字节，当前<strong>{{titleBytes}}</strong>字节]
            </span>
                <input class="input-block-level" type="text" placeholder="文章标题" name="title"
                ng-model="title" required/>
                <label>
                    文章来源
                </label>
                <span class="text-warning">[如转载文章，请填完整的原文URL地址]</span>
                <input class="input-block-level" type="url" placeholder="原文URL" name="refer"
                ng-model="refer" />
                <label class="control-label">
                    文章内容
                </label>
                <span class="text-warning">
                [必填，markdown语法，{{global.ContentMinLen}} 到 {{global.ContentMaxLen}} 字节，当前<strong>{{contentBytes}}</strong>字节]
            </span>
                <div id="wmd-button-bar">
                </div>
                <textarea class="wmd-input" id="wmd-input" ng-model="content" rows="12"
                required>
                </textarea>
                <label>
                    文章标签
                </label>
                <span class="text-warning">[最多设置 {{global.ArticleTagsMax}} 个标签]</span>
                <input type="text" name="tagsList" ng-model="tagsList" ng-list="/[,，\s]/"
                class="input-block-level" />
                <div class="well well-small">
                    <ul class="list-inline">
                        <span>热门标签：</span>
                        <li ng-repeat="tag in global.tagsList">
                            <a href="#" ng-click="getTag(tag)" class="btn btn-mini">{{tag.tag}}</a>
                        </li>
                    </ul>
                </div>
                <div class="btn-toolbar well well-small">
                    <div class="btn-group">
                        <button type="button" ng-click="submit()" class="btn btn-primary" ng-disabled="!editSave">提    交</button>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-success" ng-click="wmdHelp('preview')">文章预览</button>
                        <button type="button" class="btn btn-success" ng-click="wmdHelp('help')">Markdown语法</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
